package org.xjtu.weteam.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.xjtu.weteam.model.domain.User;
import org.xjtu.weteam.model.domain.UserTeam;
import org.xjtu.weteam.model.dto.UserDTO;

import java.io.IOException;
import java.util.List;


/**
 * @author Kevin
 */
public interface UserTeamService extends IService<UserTeam> {
    List<User> selectAllUsers(Integer teamid);

    List<UserDTO> selectUsersWithAvatar(Integer teamId) throws IOException;

    void removeRelationship(Integer userId, Integer teamId);

    Boolean checkIfIn(Integer teamId, Integer userId);

    Boolean ifCreator(Integer teamId, Integer userId);

    void changeCreator(Integer teamId, Integer userId);
}
